package com.laicunba.util;

import java.util.Map;

public class MergeUtil {

	public static String simpleMerge(String templateString, Map<String, Object> map) {
		for (String key : map.keySet()) {
			if (map.get(key) == null) {
				map.put(key, "");
			}
			templateString = templateString.replace(key, map.get(key).toString());
		}
		return templateString;
	}

}
